<?php
use yii\helpers\Html;

/* @var $original_name */
?>
<div class="uploader__bd">
    <ul class="uploader__files">
        <?php if(isset($thumbs) && !empty($thumbs)): foreach ($thumbs as $thumb): ?>
            <li class="uploader__file">
                <?= Html::hiddenInput("{$original_name}[]", $thumb); ?>
                <img class="uploader__file" src="<?= $thumb; ?>">
                <i class="del del-image"></i>
            </li>
        <?php endforeach; endif; ?>
    </ul>
    <div class="uploader__input-box">
        <button type="button" id="<?= $name; ?>" class="uploader__input"></button>
    </div>
</div>